package br.com.news.application.service.client;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import br.com.news.utils.database.beans.CategoriaBean;
import br.com.news.utils.service.interfaces.IServices;
import br.news.application.utils.interfaces.IApplicationServices;

@Named
public class ApplicationServices implements IApplicationServices{

	@Inject
	private IServices services;

	@Override
	public List<CategoriaBean> findAllCategoriaBeans() {
		return this.services.findAllCategoriaBeans();
	}

	@Override
	public void deleteCategoria(CategoriaBean categoria) {
		this.services.deleteCategoria(categoria);
	}

	@Override
	public void updateCategoria(CategoriaBean categoria) {
		this.services.updateCategoria(categoria);
	}

	@Override
	public Long insertCategoria(CategoriaBean categoria) {
		return this.services.insertCategoria(categoria);
	}

}
